{include file="public/header" /}
<body class="gray-bg">
<div class="wrapper wrapper-content">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>备注</h5>
                </div>
                <div class="ibox-content layui-form">
                    <div class="layui-row layui-col-space10 layui-form-item ">
                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">提现金额：</label>
                            <div class="layui-input-block">
                                <input type="number" min="0.3" step="0.1" max="5000" name="ask_money" placeholder="提现金额（单次最低0.3元，最多5000元）" lay-verify="required" class="layui-input ">
                            </div>
                        </div>
                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">openid(唯一识别码)：</label>
                            <div class="layui-input-block">
                                <input type="text" name="ask_openid" placeholder="务必使用微信打开链接，并输入正确，示例（o2jdivwxf4bfyDP6X4gSmHGBBbbg）" lay-verify="required" class="layui-input ">
                                <span style="font-size: 13px;">请将下方红字链接复制到微信中并打开，授权后将出现的openid复制进此框(若没有出现openid，请刷新重试)</span><br/>
                                <span style="font-size: 13px;color: red;font-weight: bold">http://two.xuanwumobile.com/api/Index/getMyOpenid</span>
                            </div>

                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <div class="layui-input-block">
                                <button class="layui-btn" lay-submit="" lay-filter="component-form-element">提交
                                </button>
                                <button class="layui-btn layui-btn-primary" onclick="history.go(-1)">关闭</button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
{include file="public/footer" /}
<script>
    layui.use(['form','upload','layedit'], function() {
        var form = layui.form;
        form.on('submit(component-form-element)', function (data) {
//            data.field.lunbo_content = editor.txt.html();
            $('.layui-btn').addClass('layui-disabled').attr('disabled','disabled');
            $.ajax({
                url:"{:url('askask')}",
                type:'post',
                dataType:'json',
                data:data.field,
                success:function(res){
                    if (res.code == 200) {
                        wk.success(res.msg,"{:url('Tixian/index')}")
                    } else {
                        wk.error(res.msg,'','$(".layui-btn").removeClass(\'layui-disabled\').removeAttr(\'disabled\');');
                    }
                }
            })
        });
    });
</script>

</body>
</html>
